<?php
$url = Common::getYouTubeId($model['url']);
$url = ($url!=null)?$url:Yii::app()->baseUrl.'images/no-image.png';
?>
<div class="container blogpage">
	<div class="row">
	
		<div class="col-lg-12 blogpagecolumn" style="border: 0px solid #0e0d0d;">
			<div class="blogvideo">
				<iframe class="youtube-player" type="text/html" 
						width="640" height="385" 
						src="http://www.youtube.com/embed/<?php echo $url;?>" 
						allowfullscreen frameborder="0">
				</iframe>
			</div>
		</div>
	
	</div>
	
	<div class="row">
	
		<div class=" col-lg-12 blogpagetext">
			<div class="bloghomepagetextborder">
				<h3><?php echo ucfirst(trim($model['name']));?></h3>
				<p class="date"><?php echo date("d/m/Y", strtotime($model['updated_at']));?></p>
				<p>
				<?php echo trim($model['content']);?>
				</p>
			</div>
		</div>
	
	
	</div>
	<!--/row end-->
</div>
